home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / CHIP Utilities / Zarzadzanie i bezpieczenstwo systemu / MBSA / MBSASetup-EN.msi / Data.Cab / errors.xsl < prev    next >
Extensible Markup Language  |  2004-08-13  |  1KB  |  45 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.         
  4.     <xsl:template match="/">
  5.         <html>
  6.         <head>
  7.             <link REL="stylesheet" type="text/css" href="css/scanner.css" />
  8.         </head>
  9.         <body style="BORDER-RIGHT: 0px; MARGIN: 0px; OVERFLOW: auto">
  10.             <table border="0" cellpadding="0" cellspacing="0" width="100%">
  11.                 <xsl:for-each select="Errors">
  12.                     <xsl:apply-templates/>
  13.                 </xsl:for-each>
  14.             </table>
  15.         </body>
  16.         </html>
  17.     </xsl:template>
  18.     
  19.     <xsl:template match="Error">
  20.         <tr>
  21.             <td>
  22.              <xsl:choose>
  23.                 <xsl:when test="@DisplayName">
  24.                     <xsl:value-of select="@DisplayName"/>
  25.                 </xsl:when>
  26.                 <xsl:otherwise>
  27.                      <xsl:choose>
  28.                         <xsl:when test="@Machine">
  29.                             <xsl:value-of select="@Domain"/>\<xsl:value-of select="@Machine"/>
  30.                         </xsl:when>
  31.                      </xsl:choose>
  32.                 </xsl:otherwise>
  33.              </xsl:choose>                
  34.              <xsl:choose>
  35.              <xsl:when test="@IP">
  36.                 (<xsl:value-of select="@IP"/>)
  37.              </xsl:when>
  38.              </xsl:choose>    
  39.              <xsl:value-of select="."/><br />
  40.             </td>
  41.         </tr>
  42.     </xsl:template>
  43.     
  44. </xsl:stylesheet>
  45.